package com.leyou.exception;

import com.leyou.exception.domain.ExceptionEnum;
import lombok.Data;

@Data
public class LyException extends RuntimeException {
    private int status;
    public LyException(int status, String message) {
        super(message);
        this.status = status;
    }

    public LyException(ExceptionEnum e) {
        super(e.getMessage());
        this.status = e.getStatus();
    }
}
